FROM nginx:latest

COPY nginx.conf /etc/nginx/nginx.conf

RUN mkdir -p /etc/nginx/sites-available
COPY site01.conf /etc/nginx/sites-available
COPY site02.conf /etc/nginx/sites-available

RUN mkdir -p /etc/nginx/sites-enabled
RUN ln -s /etc/nginx/sites-available/site01.conf /etc/nginx/sites-enabled
RUN ln -s /etc/nginx/sites-available/site02.conf /etc/nginx/sites-enabled

EXPOSE 81 82